<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<div th:fragment="detail-header">
	<div class="col-sm-12">
		<div class="detail-page-header">

			<h2>监测项指标详情</h2>
			<div class="btn-group-xs" role="group">
				<a class="btn btn-success btn-edit" th:onclick="'$.modal.openTab(\'编辑监测项指标\', \'/biz/item/edit/' + ${itemInfo.id} + '\')'" shiro:hasPermission="biz:item:edit">
					<i class="fa fa-edit"></i> 编辑
				</a>
			</div>
		</div>

		<input name="id" autocomplete="off"  class="form-control" type="hidden" maxlength="30" th:field="${itemInfo.id}" readonly>

		<table class="table table-bordered">
			<tbody>
			<tr>
				<td class="tlabel" width="150">监测项id</td>
				<td width="35%" th:text="${itemInfo.id}"></td>
				<td class="tlabel" width="150">监测项名称：</td>
				<td width="35%">
					<span th:text="${itemInfo.itemName}"></span>
				</td>
			</tr>
			<tr>
				<td class="tlabel">设备类型名称：</td>
				<td>
					<span th:text="${itemInfo.sblxName}"></span>
				</td>
				<td class="tlabel">是否有效：</td>

				<td th:if="${ itemInfo.isValid == '1' }" class="color-green">
					有效
				</td>
				<td th:if="${ itemInfo.isValid == '0' }" class="color-red">
					无效
				</td>
			</tr>
			<tr>
				<td class="tlabel">单位中文：</td>
				<td th:text="${itemInfo.unitZh}"></td>
				<td class="tlabel">单位符号：</td>
				<td th:text="${itemInfo.unitFlag}"></td>
			</tr>
			<tr>
				<td class="tlabel">上限阀值：</td>
				<td th:text="${itemInfo.fzUp}"></td>
				<td class="tlabel">下限阀值：</td>
				<td th:text="${itemInfo.fzDown}"></td>
			</tr>
			<tr>
				<td class="tlabel">设备名称：</td>
				<td th:text="${itemInfo.sbName}"></td>
				<td class="tlabel">所属泵站：</td>
				<td th:text="${itemInfo.pumpCode}"></td>
			</tr>
			<tr>
				<td class="tlabel">删除标志：</td>
				<td th:if="${ itemInfo.isDeleted == '1' }" class="color-red">
					已删除
				</td>
				<td th:if="${ itemInfo.isDeleted == '0' }" class="color-green">
					未删除
				</td>
				<td class="tlabel">备注</td>
				<td th:text="${itemInfo.remark}"></td>
			</tr>
			<tr>
				<td class="tlabel">是否需要上下限报警：</td>
				<td th:if="${ itemInfo.isUpdownWarning == '1' }" class="color-red">
					需要
				</td>
				<td th:if="${ itemInfo.isUpdownWarning != '1' }" class="color-green">
					不需要
				</td>
				<td class="tlabel">是否信号报警</td>
				<td th:if="${ itemInfo.isFlagWarning == '1' }" class="color-red">
					需要
				</td>
				<td th:if="${ itemInfo.isFlagWarning != '1' }" class="color-green">
					不需要
				</td>
			</tr>

			</tbody>
		</table>
	</div>

</div>

